package com.atguigu.java.ai.langchain4j.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 分时段号源实体类
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("registration_slot") // 对应数据库表名
public class RegistrationSlot implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 时间段，如上午、下午、夜晚
     */
    @TableId(type = IdType.AUTO)
    @TableField("slot_id")
    private String slotId;

    /**
     * 医生ID，外键
     */
    @TableField("doctor_id")
    private Long doctorId;

    /**
     * 就诊日期
     */
    @TableField("date")
    private String date;

    /**
     * 时间段，如上午、下午、夜晚
     */
    @TableField("time_slot")
    private String timeSlot;

    /**
     * 剩余号数
     */
    @TableField("remaining_numbers")
    private String remainingNumber;

    /**
     * 创建时间，自动填充
     */
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}